<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<HearingInput>" %>
<% using (Html.BeginForm())
   {%>
<div class="ia">
    <%= Html.HiddenFor(o => o.CaseId)%>
    <%= Html.EditorFor(o => o.RoomId)%>
    <%= Html.EditorFor(o => o.TypeId)%>
    <%= Html.EditorFor(o => o.Date)%>
    <div class="efield">
        <div class="elabel">
            <label>
                Timp *:</label>
        </div>
        <div class='einput short'>
            <div class="inputinfo">
                Ora:</div>
            <%= Html.TextBoxFor(o => o.Hour,new{num="true"})%>
            <div class="inputinfo">
                Minuta:</div>
            <%= Html.TextBoxFor(o => o.Minute, new { num = "true" })%>
        </div>
    </div>
</div>
<div class="ia">
    <div class="efield">
        <div class="elabel">
            <label>
                Durata *:</label>
        </div>
        <div class='einput short'>
            <div class="inputinfo">
                Ore:</div>
            <%= Html.TextBoxFor(o => o.DurationHours,new{num="true"})%>
            <div class='inputinfo'>
                Minute:</div>
            <%= Html.TextBoxFor(o => o.DurationMinutes, new { num = "true" })%>
        </div>
    </div>
    <%= Html.EditorFor(o => o.IsSecret)%>
    <%= Html.EditorFor(o => o.StateLanguage)%>
    <div class="efield">
        <div class="elabel">
            Participanti *:</div>
        <div class="einput">
            <%= Html.LookupFor(o => o.Parties, multiselect:true, data:new Dictionary<string, string>{{"CurrentCaseId","caseId"}}, fullscreen:true)%>
            <%= Html.ValidationMessageFor(o => o.Parties) %>
        </div>
    </div>
    <%= Html.EditorFor(o => o.Users)%>
</div>
<%
   }%>